from django.conf.urls import url

from . import views

urlpatterns = [
    # 商品列表页 list/(?P<category_id>\d+)/(?P<page_num>\d+)/
    url("^list/(?P<category_id>\d+)/(?P<page_num>\d+)/$", views.ListView.as_view(), name="list"),

    # 商品热销
    url("^hot/(?P<category_id>\d+)/$", views.HotView.as_view(), name="hot"),

    # detail/(?P<sku_id>\d+)/
    url("^detail/(?P<sku_id>\d+)/$", views.DetailView.as_view(), name="detail")
]